import { NextResponse } from "next/server"

/**
 * 获取歌词
 *
 * @route GET /api/lyrics/[id]
 * @param {string} id - 歌曲ID
 *
 * @returns {Object} 返回歌词内容
 *
 * 请求示例:
 * GET /api/lyrics/s1
 *
 * 返回示例:
 * {
 *   "success": true,
 *   "data": {
 *     "lyrics": "[00:00.00]晴天 - 周杰伦\n[00:03.50]词：周杰伦\n[00:07.00]曲：周杰伦\n[00:10.50]故事的小黄花\n[00:14.00]从出生那年就飘着\n[00:17.50]童年的荡秋千\n[00:21.00]随记忆一直晃到现在\n...",
 *     "translatedLyrics": "[00:00.00]Sunny Day - Jay Chou\n[00:03.50]Lyrics: Jay Chou\n[00:07.00]Music: Jay Chou\n[00:10.50]The little yellow flowers in the story\n[00:14.00]Have been floating since the year I was born\n[00:17.50]The childhood swing\n[00:21.00]Keeps swinging with my memories until now\n..."
 *   }
 * }
 */
export async function GET(request: Request, { params }: { params: { id: string } }) {
  const id = params.id

  // 实现获取歌词逻辑
  return NextResponse.json({
    success: true,
    data: {
      lyrics:
        "[00:00.00]晴天 - 周杰伦\n[00:03.50]词：周杰伦\n[00:07.00]曲：周杰伦\n[00:10.50]故事的小黄花\n[00:14.00]从出生那年就飘着\n[00:17.50]童年的荡秋千\n[00:21.00]随记忆一直晃到现在\n...",
      translatedLyrics:
        "[00:00.00]Sunny Day - Jay Chou\n[00:03.50]Lyrics: Jay Chou\n[00:07.00]Music: Jay Chou\n[00:10.50]The little yellow flowers in the story\n[00:14.00]Have been floating since the year I was born\n[00:17.50]The childhood swing\n[00:21.00]Keeps swinging with my memories until now\n...",
    },
  })
}

